package com.cloudlead.plugin.security.entity;

import com.cloudlead.common.lang.persistence.AbstractIdEntity;

import com.cloudlead.common.persistence.UpdateCheck;

import javax.validation.constraints.Size;
import com.cloudlead.common.lang.annotation.Label;
import java.lang.String;
import javax.validation.constraints.NotNull;

/**
 * EScUserHasRole is a Querydsl bean type
 */
@Label("用户对应的角色")
public class EScUserHasRole extends AbstractIdEntity<String> {

    private static final long serialVersionUID =1743725341668L;    
    @NotNull(groups={UpdateCheck.class})
    @Size(max=24)
    @Label("编号")
    private String id;

    @NotNull
    @Size(max=24)
    @Label("所属角色")
    private String scRoleId;

    @NotNull
    @Size(max=24)
    @Label("所属用户")
    private String scUserId;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getScRoleId() {
        return scRoleId;
    }

    public void setScRoleId(String scRoleId) {
        this.scRoleId = scRoleId;
    }

    public String getScUserId() {
        return scUserId;
    }

    public void setScUserId(String scUserId) {
        this.scUserId = scUserId;
    }

    public String toString() {
         return String.format("EScUserHasRole { id : %s,scRoleId : %s,scUserId : %s }",id,scRoleId,scUserId);
    }

}

